#include "Dialog.h"
#include "../../Framework.h"
#include "../../core/NotificationCenter.h"

Mask* Dialog::masks = NULL;
CCLayer* Dialog::modelDialogLayer = Framework::getSingletonPtr()->modelDialogLayer;
CCLayer* Dialog::modelLessDialogLayer = Framework::getSingletonPtr()->modelLessDialogLayer;
Framework* Dialog::framework = Framework::getSingletonPtr();

Dialog::Dialog(void)
{
}


Dialog::~Dialog(void)
{
}

void Dialog::close()
{
}

void Dialog::popup(float offsetX, float offsetY)
{

}

void Dialog::onEnter()
{
	CCLayer::onEnter();
	masks->setTarget(this, callfunc_selector(Dialog::touchScreen));
}

void Dialog::onExit()
{
	CCLayer::onExit();
	RemoveObserver(this);
}

void Dialog::setTarget()
{
	masks->setTarget(this, callfunc_selector(Dialog::touchScreen));
}

void Dialog::loseFocus()
{

}

void Dialog::getFocus()
{

}
